﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Water.Web.Controls.Office.Excel
{
    [ToolboxItem(false)]
    [ParseChildren(true)]
    public class SheetItemCollection:List<Sheet>
    {
        public SheetItemCollection() : base() { }

        public new int Count
        {
            get
            {
                return base.Count;
            }
        }

        public bool IsReadOnly
        {
            get
            {
                return false;
            }
        }

        public new void Add(Sheet item)
        {
            base.Add(item);
        }

        public new void Clear()
        {
            base.Clear();
        }

        public new bool Contains(Sheet item)
        {
            return base.Contains(item);
        }

        public new bool Remove(Sheet item)
        {
            return base.Remove(item);
        }

        public new Sheet this[int index]
        {
            get
            {
                return base[index];
            }
            set
            {
                base[index] = value;
            }
        }
    }
}
